package com.esms.esmsadmin.service;

import com.esms.esmsadmin.entity.RoleEntity;
import com.esms.esmsadmin.mapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleService {
    @Resource
    RoleMapper roleMapper;


    public List<RoleEntity> getAllRoles() {
        return roleMapper.getAllRoles();
    }

    public Integer insertRole(RoleEntity roleEntity) {
       return roleMapper.insert(roleEntity);
    }
}
